<template>
  <div class="userdetail">
    <div>
      <div class="user_img"><img src="@/assets/noface.jpg" alt="" /></div>
      <div class="user_edit">
        <div>
          <p>
            <span>0</span>
            <span class="user_text">粉丝</span>
          </p>
          <p>
            <span>54</span>
            <span class="user_text">关注</span>
          </p>
          <p>
            <span>0</span>
            <span class="user_text">获赞</span>
          </p>
        </div>
        <div>
          <div class="user_editBtn">编辑资料</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style scoped lang="less">
.userdetail {
  background-color: #fff;
  padding: 0 12px;
}

.userdetail > div {
  display: flex;
}

.user_img {
  margin-right: 20px;
}

.user_img img {
  height: 85px;
  width: 85px;
  border-radius: 50%;
}

.user_edit {
  flex: 1;
  margin-top: 10px;
  div:nth-child(2) {
    padding:10px;
    .user_editBtn {
      display: inline-block;  /*减小空隙，边框环绕字体*/
      border: 1px solid #fb7a9f;
      padding:3px;
      display: flex;
      justify-content: center;
      align-items: center;
      color: #fb7a9f;
      border-radius: 4px;
    }
  }
}

.user_edit div:nth-child(1) {
  display: flex;
}

.user_edit div:nth-child(1) .user_text {
  color: #ccc;
}

.user_edit p {
  flex: 1;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  font-size: 13px;
  text-align: center;
}

.user_edit p:nth-child(1),
p:nth-child(2) {
  border-right: 1px solid #ccc;
}
</style>